using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using DTO;
using DAOLayer;

namespace BUSLayer
{
    public class TinhTrangBus
    {
        public static DataTable LayDanhSachTinhTrang()
        {
            //Kiem tra Business Rule neu co
            DataTable dt = new DataTable();
            dt = TinhTrangDao.LayDanhSachTinhTrang();
            return dt;
        }
        public static TinhTrangDto LayTinhTrang(int ma)
        {
            TinhTrangDto ttrang = new TinhTrangDto();
            ttrang = TinhTrangDao.LayTinhTrang(ma);
            return ttrang;
        }
        public static void CapNhatXuongCSDL(TinhTrangDto tt)
        {
            TinhTrangDao.CapNhatXuongCSDL(tt);
        }
        public static TinhTrangDto LayTinhTrangTheoTen(string ten)
        {
            TinhTrangDto ttrang = new TinhTrangDto();
            ttrang = TinhTrangDao.LayTinhTrangTheoTen(ten);
            return ttrang;
        }
    }
}
